# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=airflood
pkgver=0.1
pkgrel=7
pkgdesc='A modification of aireplay that allows for a DoS of the AP. This program fills the table of clients of the AP with random MACs doing impossible new connections. [Tool in Spanish]'
groups=('blackarch' 'blackarch-wireless')
arch=('x86_64' 'aarch64')
url="http://packetstormsecurity.com/files/51127/airflood-0.1.tar.gz.html"
license=('GPL')
depends=('lib32-glibc')
source=("https://dl.packetstormsecurity.net/wireless/$pkgname-$pkgver.tar.gz")
sha512sums=('48409661f963a6eafbd2ef325dcf9f20f31c382b26d176a5272b1800c732242ae3f612436c9238fce33dac266d59c0f2971a15463623495d93c1f50c85fb0691')

build() {
  cd "$pkgname-$pkgver"

  make
}

package(){
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.txt
}

